home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / initsnb.zoo / init / sh / makefile < prev    next >
Encoding:
Makefile  |  1992-10-26  |  3.4 KB  |  78 lines

  1. #    %W% (Berkeley) %G% 
  2. CC=cc
  3. PROG=sh.ttp
  4. STUBS=builtins cd dirent echo error eval exec expand input jobs mail \
  5.   main memalloc miscblti mystring nodes options parser redir show signames \
  6.   syntax trap output var init
  7. OBJS=$(addsuffix .o, $(STUBS))
  8. SRCS=$(addsuffix .c, $(STUBS))
  9. HEADERS=bltin.h builtins.h errmsg.h error.h eval.h exec.h expand.h init.h \
  10.   input.h jobs.h machdep.h mail.h main.h memalloc.h mystring.h nodes.h \
  11.   options.h output.h parser.h redir.h shell.h signames.h \
  12.   syntax.h trap.h var.h
  13. CFLAGS=-DSHELL -I. -O -fstrength-reduce -finline-functions -fomit-frame-pointer
  14. LDFLAGS=
  15. LOADLIBES=
  16. FUNCS=$(addprefix funcs/, cmv dirs kill login newgrp popd pushd suspend)
  17. DOCS=dump dinfo lastdump sh.1 tour test.1 readme.st copying copying.sh
  18. ORGFILES=makefile.org token.def mktokens mkbuilti builtins.def mkinit.c \
  19.   mknodes.c nodetype nodes_c.pat mksignam.c mksyntax.c
  20. SDISTFILES=$(SRCS) $(HEADERS) $(FUNCS) $(DOCS) $(ORGFILES) makefile test.c
  21. BDISTFILES=$(FUNCS) $(DOCS) sh.ttp test.ttp
  22.  
  23. $(PROG): $(OBJS)
  24.     $(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LOADLIBES)
  25.  
  26. sh-src.zoo: $(SDISTFILES)
  27.     rm -f sh-src.zoo
  28.     zoo ah sh-src.zoo $(SDISTFILES)
  29.  
  30. sh-bin.zoo: $(BDISTFILES)
  31.     rm -f sh-bin.zoo
  32.     zoo ah sh-bin.zoo $(BDISTFILES)
  33.  
  34. test.ttp: test.o
  35.     $(CC) $(LDFLAGS) -o test.ttp test.o $(LOADLIBES)
  36.  
  37. builtins.o: shell.h builtins.h 
  38. cd.o: shell.h var.h nodes.h jobs.h options.h output.h memalloc.h error.h \
  39.   mystring.h 
  40. dirent.o: shell.h
  41. echo.o: bltin.h
  42. errmsg.o: shell.h output.h errmsg.h
  43. error.o: shell.h main.h options.h output.h error.h 
  44. eval.o: shell.h nodes.h syntax.h expand.h parser.h jobs.h eval.h builtins.h \
  45.   options.h exec.h redir.h input.h output.h trap.h var.h memalloc.h error.h \
  46.   mystring.h 
  47. exec.o: shell.h main.h nodes.h parser.h redir.h eval.h exec.h builtins.h \
  48.   var.h options.h input.h output.h syntax.h memalloc.h error.h init.h \
  49.   mystring.h 
  50. expand.o: shell.h main.h nodes.h eval.h expand.h syntax.h parser.h jobs.h \
  51.   options.h var.h input.h output.h memalloc.h error.h mystring.h 
  52. init.o: shell.h mystring.h eval.h input.h error.h options.h redir.h \
  53.   signames.h trap.h output.h memalloc.h var.h 
  54. input.o: syntax.h input.h output.h memalloc.h error.h 
  55. jobs.o: shell.h main.h parser.h nodes.h jobs.h options.h trap.h \
  56.   signames.h syntax.h input.h output.h memalloc.h error.h mystring.h 
  57. mail.o: shell.h exec.h var.h output.h memalloc.h error.h 
  58. main.o: shell.h main.h mail.h options.h output.h parser.h nodes.h \
  59.   eval.h jobs.h input.h trap.h var.h memalloc.h error.h init.h mystring.h 
  60. memalloc.o: shell.h output.h memalloc.h error.h machdep.h mystring.h 
  61. miscblti.o: shell.h options.h var.h output.h memalloc.h error.h mystring.h 
  62. mystring.o: shell.h syntax.h error.h mystring.h 
  63. nodes.o: shell.h nodes.h memalloc.h machdep.h mystring.h 
  64. options.o: shell.h options.h nodes.h eval.h jobs.h input.h output.h trap.h \
  65.   var.h memalloc.h error.h mystring.h 
  66. output.o: shell.h syntax.h output.h memalloc.h error.h
  67. parser.o: shell.h parser.h nodes.h expand.h redir.h syntax.h options.h \
  68.   input.h output.h var.h error.h memalloc.h mystring.h 
  69. redir.o: shell.h nodes.h jobs.h expand.h redir.h output.h memalloc.h error.h 
  70. show.o: shell.h parser.h nodes.h mystring.h
  71. signames.o: shell.h
  72. syntax.o: shell.h syntax.h
  73. trap.o: shell.h main.h nodes.h eval.h jobs.h options.h syntax.h signames.h \
  74.   output.h memalloc.h error.h trap.h mystring.h
  75. var.o: shell.h output.h expand.h nodes.h eval.h exec.h syntax.h options.h \
  76.   mail.h var.h memalloc.h error.h mystring.h  
  77.  
  78.